import { FormSchema } from '/@/components/BasicForm/type/form';
export const componentRelationSchemas: FormSchema = [
  {
    field: 'componentId',
    label: '组件名称',
    component: 'ApiSelect',
    componentProps: () => {
      return {
        placeHolder: '请选择组件',
        // api: getComponentList,
      };
    },
    labelWidth: 100,

    colProps: { span: 24 },
    required: true,
    dynamicDisabled: true,
  },
  {
    field: 'upstreamComponentId',
    label: '上游组件',
    component: 'ApiSelect',
    componentProps: {
      placeHolder: '请选择上游组件',
      mode: 'multiple',
    },
    labelWidth: 100,
    colProps: { span: 24 },
    required: true,
    dynamicDisabled: true,
  },
  {
    field: 'downstreamComponentId',
    label: '下游组件',
    component: 'ApiSelect',
    componentProps: {
      placeHolder: '请选择下游组件',
      mode: 'multiple',
    },
    labelWidth: 100,
    colProps: { span: 24 },
    required: true,
    dynamicDisabled: true,
  },
];
